next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
</>
Loading Topics...
1
What is a pseudo-element in CSS?
Expert
High
2
How are pseudo-elements different from pseudo-classes?
Expert
High
3
What is the syntax of a pseudo-element?
Expert
High
4
Name some commonly used pseudo-elements.
Expert
High
5
What does the ::before pseudo-element do? What does the ::after pseudo-element do?
Expert
High
6
How can you insert content using pseudo-elements?
Expert
High
7
What is the difference between :before and ::before? Why were pseudo-elements changed from one colon (:) to two (::) in CSS3?
Expert
High
8
What does the ::first-letter pseudo-element do?
Expert
High
9
What does the ::first-line pseudo-element do?
Expert
High
10
How can you style the first line of a paragraph differently?
Expert
High
11
Can pseudo-elements be styled with animations or transitions?
Expert
High
12
What’s the difference between using ::before and ::after?
Expert
High
13
Can pseudo-elements be positioned using CSS positioning properties? Can pseudo-elements have background images or colors? How can you use pseudo-elements to create shapes or icons?
Expert
High
14
Can you use multiple pseudo-elements on the same element?
Expert
High
15
What is the ::selection pseudo-element used for?
Expert
High
16
How does stacking and z-index affect pseudo-elements?
Expert
High
17
Can pseudo-elements have child elements or content inside them?
Expert
High
18
Can you apply pseudo-elements to replaced elements (like <img>)?
Expert
High
19
How do pseudo-elements interact with display and overflow properties?
Expert
High
20
What’s the difference between using pseudo-elements and real elements for decoration?
Expert
High
21
How does inheritance work with pseudo-elements?
Expert
High
22
Can pseudo-elements trigger JavaScript events (like click)?
Expert
High
23
How can you control the generated content with pseudo-elements using attr()?
Expert
High
24
Can pseudo-elements be used inside flex or grid layouts?
Expert
High
25
How do you control the stacking order of ::before and ::after pseudo-elements?
Expert
High
26
How can you create a tooltip using pseudo-elements?
Expert
High
27
How can you make a custom underline or highlight effect using ::after?
Expert
High
28
How can you make a quotation mark appear before a paragraph using pseudo-elements?
Expert
High
29
How do you create a triangle or arrow shape using only CSS pseudo-elements?
Expert
High
30
How can you use pseudo-elements to add icons without extra markup?
Expert
High
31
How can you create a button hover animation using ::before or ::after?
Expert
High
32
How can pseudo-elements help in implementing skeleton loaders or shimmer effects?
Expert
High
33
How can you use ::before and ::after to clear floats?
Expert
High
34
How can you create a border animation using pseudo-elements?
Expert
High
35
How can pseudo-elements be used in responsive design?
Expert
High
36
What is the ::marker pseudo-element and when is it used?
Expert
High
37
What does the ::placeholder pseudo-element do?
Expert
High
38
How does ::cue work with media elements?
Expert
High
39
What is ::backdrop, and where is it used?
Expert
High
40
What is the difference between ::file-selector-button and other input pseudo-elements?
Expert
High
41
How does the ::part() pseudo-element work in Web Components?
Expert
High
42
How is ::slotted() different from ::part() in shadow DOM styling?
Expert
High
43
Can you style text highlights with pseudo-elements?
Expert
High
44
How can ::selection be customized for accessibility and branding?
Expert
High
45
What are the limitations of pseudo-elements compared to actual DOM elements?
Expert
High
All Topics
1
Fundamentals
0/5 topics · 0%
Basics
Selectors
Box model
Text formatters
Combinators
2
Positioning & layout
0/4 topics · 0%
Positioning
Display
Overflow
Breakpoint
3
Modern layout
0/5 topics · 0%
Pseudo classes
Pseudo elements
Flexbox
Grid
Transformation and Transition
4
Beyond core
0/2 topics · 0%
Frameworks
Everything else